package com.dao.impl;

import com.dao.UserDao;
import org.springframework.stereotype.Component;


@Component("userDao") //userDaoImpl
public class UserDaoImpl implements UserDao {
    @Override
    public boolean login(String name, String password) {
        if (name.equals("张三") && password.equals("123")) {
            return true;
        }
        return false;
    }
}
